package si.yun.utils;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import si.yun.dao.SyOperationLogMapper;

/**
 * @ClassName: 添加操作日志的工具类
 * @Description: TODO
 * @Author: 李振海
 * @Date 2021/8/6 14:07
 */
@Service
public class Operationlog {

    @Autowired
    private SyOperationLogMapper SyOperationLogMapper;


    /**
     * @Author : 李振海
     * @Date : 2021/8/6 14:09
     * @Param : [user_id, tableName, type]
     * @Return : int
     * 循序：操作人，操作列表名，操作类型【2添加，3删除，4修改，5查找】
     */
    public int Operationlog(String user_id,String tableName,String type){

        int Operationlog=SyOperationLogMapper.Operationlog(user_id,tableName,type);
        return Operationlog;
    }


}
